package com.twetec.cms.model.vo.system;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.twetec.cms.model.vo.base.BaseVO;
import io.swagger.annotations.ApiModelProperty;

public class RoleVO extends BaseVO {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "角色id", example = "12345646546")
    private Long id;

    @ApiModelProperty(value = "角色名称", example = "员工")
    private String name;

    @ApiModelProperty(value = "工会角色id", example = "12345646546")
    private Long unionRoleId;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getUnionRoleId() {
        return unionRoleId;
    }

    public void setUnionRoleId(Long unionRoleId) {
        this.unionRoleId = unionRoleId;
    }

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "RoleVO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", unionRoleId='" + unionRoleId + '\'' +
                '}';
    }
}
